package org.ourgrid.broker.business.scheduler.workqueue.xmlcreator;


public class CancelTransferXMLCreator implements XMLCreatorIF{

	/**
	 * 
	 * <CANCEL_TRANSFER handleId='long' localFileName='String' destinationFileName='String' description='String' 
	 * id='String' fileSize='long' outgoing='boolean'/> 
	 * 
	 */
	public String getXML(long handleId, String localFileName, String description,
			String id, long fileSize, boolean outgoing){
		
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("<CANCEL_TRANSFER ");
		buffer.append("handleId='" + handleId + "' ");
		buffer.append("localFileName='" + localFileName + "' ");
		buffer.append("description='" + description + "' ");
		buffer.append("id='" + id + "' ");
		buffer.append("fileSize='" + fileSize + "' ");
		buffer.append("outgoing='" + outgoing + "' ");
		buffer.append("/>");
		
		return buffer.toString();
	
	}
}
